package com.xbongbong.pro.detailtab.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 详情页tab，查询市场活动关联的“销售线索” DTO
 * @author chunyang.qin
 * @version v1.0
 * @date 2020/11/9 16:05
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class LinkClueGetDTO extends BaseDTO {

    private static final long serialVersionUID = 5651059167873239096L;
    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.myTeamGet.dataId.NotNul}")
    private Long dataId;
    /**
     * saas标记
     */
    @NotNull(message = "{dto.msg.myTeamGet.saasMark.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.myTeamGet.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.myTeamGet.saasMark.DecimalMax}")
    private Integer saasMark;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.myTeamGet.businessType.NotNull}")
    private Integer businessType;
}
